import { ref } from 'vue'
export function useCompRef<T extends abstract new (...args: any) => any>(comp: T) {
    return ref<InstanceType<T>>()
} 

//如何使用
// import {ElForm} from 'element-plus'
// const formRef = useCompRef(ElForm)